﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SherlockGUI.CFG;

namespace SherlockGUI.Dlg
{
    public partial class SetExposureTimeDlg : Form
    {
        public SetExposureTimeDlg()
        {
            InitializeComponent();
        }

        private void button_SetExportTime_Click(object sender, EventArgs e)
        {
            int iTime = 1000;
            try
            {
                iTime = int.Parse(textBox_ExportTime.Text);
            }
            catch (System.Exception )
            {
                MessageBox.Show("请输入整数");
                return;
            }

            if (iTime >= 1000 && iTime <= 5000)
            {
                GlobalCfg.m_UserValues.m_GUI.SetExportTime(iTime);
            }
            else
            {
                MessageBox.Show("范围为1000-5000");
            }
        }
    }
}
